# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyxcute
_pkgname=pyxcute
pkgver=0.8.1
pkgrel=3
pkgdesc='A small task runner inspired by npm scripts.'
arch=('any')
url='https://pypi.org/project/pyxcute/'
license=('MIT')
depends=('python' 'python-docutils' 'twine' 'python-pygments' 'python-pylint'
         'python-sphinx-autobuild' 'python-sphinx' 'python-livereload')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('be13df37906455929ddb81a67a24c3cd00ed4954aed6f1540dfd73ac26b0f070620250ab11db618a14dd6d84a1c00bcac106e766847cc3f7ba2c067099ebedb6')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd $_pkgname-$pkgver

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

